package org.finesys.system.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.finesys.common.mp.core.base.BaseEntity;

//部门对象
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDept extends BaseEntity {

    // 部门ID
    @TableId(value = "dept_id", type = IdType.ASSIGN_ID)
    private Long deptId;

    // 部门编码
    private String deptCode;

    // 部门名称
    private String deptName;

    // 父级部门
    private Long parentId;

    // 排序
    private Integer sortOrder;
    /**
     * 0-正常，1-删除
     */
    @TableLogic
    private String delFlag;
}
